package com.jr9z.jrjz.service.impl;

import com.jr9z.jrjz.dao.MinistryMapper;
import com.jr9z.jrjz.entity.Ministry;
import com.jr9z.jrjz.service.MinistryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author:Mrzhang
 * @Description:
 * @Date:2019.03.25 21:55
 **/

@Service
public class MinistryServiceImpl implements MinistryService {

    @Autowired
    private MinistryMapper ministryMapper;

    @Override
    public int deleteByPrimaryKey(Integer serviceId) {
        return ministryMapper.deleteByPrimaryKey(serviceId);
    }

    @Override
    public int insert(Ministry record) {
        return ministryMapper.insert(record);
    }

    @Override
    public int insertSelective(Ministry record) {
        return ministryMapper.insertSelective(record);
    }

    @Override
    public Ministry selectByPrimaryKey(Integer serviceId) {
        return ministryMapper.selectByPrimaryKey(serviceId);
    }

    @Override
    public int updateByPrimaryKeySelective(Ministry record) {
        return ministryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(Ministry record) {
        return ministryMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(Ministry record) {
        return ministryMapper.updateByPrimaryKey(record);
    }
}
